<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <ui:composition template="template/template.xhtml">
        <ui:define name="title">
            <h:outputText value="Projects"></h:outputText>
        </ui:define>
          <ui:define name="banner">
             <div  style="background: url(images/projects.jpg);"  id="banner"></div>
        </ui:define>

        <ui:define name="body">
            <div id="services" class="clsClearfix">
                <ui:repeat value="#{projectsController.items}" var="item" varStatus="status">


                    <h:panelGroup rendered="#{status.index %3== 0}">
                        <!--GROWING -->
                        <div class="clsGrowing clsFloatLeft">
                            <div class="inner_t">
                                <div class="inner_r">
                                    <div class="inner_b">
                                        <div class="inner_l">
                                            <div class="inner_tl">
                                                <div class="inner_tr">
                                                    <div class="inner_bl">
                                                        <div class="inner_br">
                                                            <div class="cls100_p">
                                                                <h3><h:outputText value="#{item.name}"/></h3>
                                                                <img src="#{item.snapShotUrl}" alt=""/>
                                                                <p><h:outputText value="#{item.description}"/></p>
                                                                <h:panelGroup rendered="#{item.status}">
                                                                <p class="clsReadmore"><a href="#{item.url}" target="_blank">go to site </a></p>
                                                                </h:panelGroup>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!--END OF GROWING -->	

                    </h:panelGroup>
                    <h:panelGroup rendered="#{status.index %3== 1}">

                        <!--WAITING -->
                        <div class="clsWaiting clsFloatLeft">
                            <div class="inner_t">
                                <div class="inner_r">
                                    <div class="inner_b">
                                        <div class="inner_l">
                                            <div class="inner_tl">
                                                <div class="inner_tr">
                                                    <div class="inner_bl">
                                                        <div class="inner_br">
                                                            <div class="cls100_p">
                                                                <h3><h:outputText value="#{item.name}"/> </h3>
                                                                <img src="#{item.snapShotUrl}" alt=""/>
                                                                <p><h:outputText value="#{item.description}"/></p>
                                                               <h:panelGroup rendered="#{item.status}">
                                                                <p class="clsReadmore">
                                                                    <a href="#{item.url}"  target="_blank" >go to site </a></p>
                                                                </h:panelGroup>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!--END OF WAITING -->	
                    </h:panelGroup>
                    <h:panelGroup rendered="#{status.index %3== 2}">

                        <!--GROWING -->
                        <div class="clsCelebrating clsFloatLeft">
                            <div class="inner_t">
                                <div class="inner_r">
                                    <div class="inner_b">
                                        <div class="inner_l">
                                            <div class="inner_tl">
                                                <div class="inner_tr">
                                                    <div class="inner_bl">
                                                        <div class="inner_br">
                                                            <div class="cls100_p">
                                                                <h3><h:outputText value="#{item.name}"/></h3>
                                                                <img src="#{item.snapShotUrl}" alt=""/>
                                                                <p><h:outputText value="#{item.description}"/></p>
                                                                 <h:panelGroup rendered="#{item.status}">
                                                                <p class="clsReadmore">
                                                                   
                                                                    <a href="#{item.url}"  target="_blank">go to site </a></p>
                                                                </h:panelGroup>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!--END OF GROWING -->	
                    </h:panelGroup>
                </ui:repeat>
            </div>
        </ui:define>
    </ui:composition>
</html>
